import request from '@/utils/request'

// 查询在线商品销售列表
export function listGoodssellcontrast(query) {
  return request({
    url: '/item/goodssellcontrast/list',
    method: 'get',
    params: query
  })
}

// 查询在线商品销售详细
export function getGoodssellcontrast(goodsId) {
  return request({
    url: '/item/goodssellcontrast/' + goodsId,
    method: 'get'
  })
}

// 新增在线商品销售
export function addGoodssellcontrast(data) {
  return request({
    url: '/item/goodssellcontrast',
    method: 'post',
    data: data
  })
}

// 修改在线商品销售
export function updateGoodssellcontrast(data) {
  return request({
    url: '/item/goodssellcontrast',
    method: 'put',
    data: data
  })
}

// 删除在线商品销售
export function delGoodssellcontrast(goodsId) {
  return request({
    url: '/item/goodssellcontrast/' + goodsId,
    method: 'delete'
  })
}
